<ul class="maintabmenu multipletabmenu">            
    <li ><a href="<?php echo base_url();?>administrator/categoryrestaurents">Danh mục nhà hàng</a></li> 
    <li class="current"><a href="<?php echo base_url();?>administrator/categoryrestaurents/add/<?php echo $term->term_id;?>">Thêm nhà hàng vào danh mục</a></li>       
</ul>

<div class="content">
    <input type="hidden" value="<?php echo base_url()?>" id="base_url" />
    <input type="hidden" value="<?php echo $term->term_id; ?>" id="object_id" />
    <div class="one_half menu_add_new">
        <h2><?php  echo  $term->term_name;?></h2>
        <br />
        <form class="stdform" action="<?php echo base_url().'administrator/categoryrestaurents/change_order/'.$term->term_id ?>" method="post">
            <?php  foreach ($list_child_restaurent as $restaurent) {   ?>  
            <input type="hidden" name="term_tax_restaurent_id<?php echo $restaurent->term_tax_restaurent_id; ?>"  value="<?php echo $restaurent->term_tax_restaurent_id;?>"/>                       	                              
        	<div class="widgetbox" id="menu_item_<?php echo $restaurent->id; ?>" >                  
                    <input type="text" name="order<?php echo $restaurent->term_tax_restaurent_id; ?>" class="order_menu" size="1" value="<?php echo $restaurent->term_order; ?>"/>
                    <div class="title1"><h2 class="general"><span><?php echo $restaurent->name; ?></span></h2></div>
                    <div class="widgetcontent menu_detail">
                        <p>
                        	<label>ID: <?php echo $restaurent->id; ?> </label>
                            <input type="hidden" name="id" class="smallinput" value="<?php echo $restaurent->id; ?>" id="id<?php echo $restaurent->id; ?>"/>                    
                        </p>                           
                        <p>
                        	<label>Tên nhà hàng: <b><?php echo $restaurent->name; ?></b></label>                                            
                        </p> 
                        <p>
                            <label>Địa chỉ: <?php echo $restaurent->address; ?> </label>                        
                        </p>                   
                        <input type="hidden" value="<?php echo $term->term_id;?>" name="object_id" />
                        <p class="btn_menu">                    	                        
                            <button id="btn_delete_cat_res" value="<?php echo $restaurent->id; ?>" class=" btn_delete_child">Remove</button>                            
                        </p>
                    </div><!--widgetcontent-->                                            
            </div><!--widgetbox-->
        <?php } ?>
        <p class="btn_menu">                    	                        
            <button id=""  class="stdbtn btn_red">Đổi vị trí</button>            
        </p>
        </form>
    </div><!--one_half-->
    <div class="one_third last">    	  	        
        <div class="widgetbox" style="width: 300px">
            <div class="title"><h2 class="tabbed"><span>Danh sách nhà hàng</span></h2></div>
            <div class="widgetcontent padding0 tab_categories">
                <div id="tabs_menu1" class="ui_tabs_menu div_tabs_menu">
                    <ul  class="menu_tabs_nav">
                        <li class="tab_menu_item"><a href="#tabs-11">Danh sách nhà hàng</a></li>
                        <!--<li class="tab_menu_item"><a href="#tabs-21">Search</a></li>-->
                       
                    </ul>
                    <div id="tabs-11"  class="tab_option">    
                    <br />
                        <?php foreach ($list_restaurent as $restaurent) {?>                
                    	<input type="checkbox" name=" <?php echo $restaurent->name;?>" value="<?php echo  $restaurent->id;?>"/> <?php echo $this->common->get_lang($restaurent->name);?><br />                    
                        <?php } ?> 
                    </div>
                    <!--
                    <div id="tabs-21" class="tab_option">
                        2
                    </div>
                    -->
                </div><!--#tabs-->
                <button id="btn_add_categoryrestaurent" class="stdbtn btn_blue">Add</button>
            </div><!--widgetcontent-->
        </div><!--widgetbox-->
    </div><!--one_half-->
        
    <br clear="all" /><br />        
</div><!--content-->